package com.cloud.business.dto;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 分页dto
 */
@Data
@ApiModel("分页参数")
public class PageDTO {

    @ApiModelProperty(value = "分页查询的参数，当前页数")
    private long page = 1;

    @ApiModelProperty(value = "分页查询的参数，当前页面每页显示的数量")
    private long limit = 10;

    public Page getPage() {
        return new Page(this.page, this.limit);
    }

}
